#pragma once
#include<d3d11.h>
#include<d3dcompiler.h>

typedef HRESULT(__stdcall* tD3D11Present)(IDXGISwapChain* pSwapChain, UINT SyscInterval, UINT Flage);
typedef void(__stdcall* tD3D11DrawIndexed)(ID3D11DeviceContext* pContext, UINT IndexCount, UINT StartIndexLocation,
	INT BaseVertexLocation);

namespace Hooks
{
	extern tD3D11Present oPresent;
	extern tD3D11DrawIndexed oDrawIndexed;
	extern bool bOnce;
	HRESULT __stdcall hkD3D11Present(IDXGISwapChain* pSwapChain, UINT SyscInterval, UINT Flage);
	void __stdcall hkD3D11DrawIndexed(ID3D11DeviceContext* pContext, UINT IndexCount, UINT StartIndexLocation,
		INT BaseVertexLocation);
	extern void ReWndProc(HWND g_hWnd);
}
